<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: libemb::ProcFifo Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>libemb</b></li><li class="navelem"><a class="el" href="classlibemb_1_1_proc_fifo.html">ProcFifo</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classlibemb_1_1_proc_fifo-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">libemb::ProcFifo Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>进程间管道(有名管道)  
 <a href="classlibemb_1_1_proc_fifo.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_proc_util_8h_source.html">ProcUtil.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for libemb::ProcFifo:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classlibemb_1_1_proc_fifo.png" usemap="#libemb::ProcFifo_map" alt=""/>
  <map id="libemb::ProcFifo_map" name="libemb::ProcFifo_map">
<area href="classlibemb_1_1_i_o_device.html" title="IO设备抽象类" alt="libemb::IODevice" shape="rect" coords="0,0,107,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a58bad2cf8c3cabd1fd280ddc20b6979e"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_proc_fifo.html#a58bad2cf8c3cabd1fd280ddc20b6979e">open</a> (const char *devName, int ioMode=IO_MODE_RDWR_ONLY)</td></tr>
<tr class="memdesc:a58bad2cf8c3cabd1fd280ddc20b6979e"><td class="mdescLeft">&#160;</td><td class="mdescRight">打开有名管道  <a href="classlibemb_1_1_proc_fifo.html#a58bad2cf8c3cabd1fd280ddc20b6979e">More...</a><br /></td></tr>
<tr class="separator:a58bad2cf8c3cabd1fd280ddc20b6979e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classlibemb_1_1_i_o_device"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classlibemb_1_1_i_o_device')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classlibemb_1_1_i_o_device.html">libemb::IODevice</a></td></tr>
<tr class="memitem:a41072f54003d47e1e1517958605b1e46 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#a41072f54003d47e1e1517958605b1e46">open</a> (const std::string &amp;devName, int ioMode=IO_MODE_INVALID)</td></tr>
<tr class="memdesc:a41072f54003d47e1e1517958605b1e46 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">打开设备  <a href="classlibemb_1_1_i_o_device.html#a41072f54003d47e1e1517958605b1e46">More...</a><br /></td></tr>
<tr class="separator:a41072f54003d47e1e1517958605b1e46 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14794dab8323c4850c9512b3a7d41335 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#a14794dab8323c4850c9512b3a7d41335">close</a> ()</td></tr>
<tr class="memdesc:a14794dab8323c4850c9512b3a7d41335 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭设备  <a href="classlibemb_1_1_i_o_device.html#a14794dab8323c4850c9512b3a7d41335">More...</a><br /></td></tr>
<tr class="separator:a14794dab8323c4850c9512b3a7d41335 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae72ace3efe7f7fffbea691cab647850b inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#ae72ace3efe7f7fffbea691cab647850b">readData</a> (char *buf, int len)</td></tr>
<tr class="memdesc:ae72ace3efe7f7fffbea691cab647850b inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">读数据  <a href="classlibemb_1_1_i_o_device.html#ae72ace3efe7f7fffbea691cab647850b">More...</a><br /></td></tr>
<tr class="separator:ae72ace3efe7f7fffbea691cab647850b inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cde5b2c2a0d1157bc818148ecafbe32 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#a9cde5b2c2a0d1157bc818148ecafbe32">writeData</a> (const char *buf, int len)</td></tr>
<tr class="memdesc:a9cde5b2c2a0d1157bc818148ecafbe32 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">写入数据  <a href="classlibemb_1_1_i_o_device.html#a9cde5b2c2a0d1157bc818148ecafbe32">More...</a><br /></td></tr>
<tr class="separator:a9cde5b2c2a0d1157bc818148ecafbe32 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3510f12e4bc5bcea11f2328534feebc inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#ae3510f12e4bc5bcea11f2328534feebc">recvData</a> (char *buf, int len, int usTimeout=-1)</td></tr>
<tr class="memdesc:ae3510f12e4bc5bcea11f2328534feebc inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">接收数据  <a href="classlibemb_1_1_i_o_device.html#ae3510f12e4bc5bcea11f2328534feebc">More...</a><br /></td></tr>
<tr class="separator:ae3510f12e4bc5bcea11f2328534feebc inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d917acb7ad2f18e1fe8cecba124de2d inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#a2d917acb7ad2f18e1fe8cecba124de2d">sendData</a> (const char *buf, int len, int usTimeout=-1)</td></tr>
<tr class="memdesc:a2d917acb7ad2f18e1fe8cecba124de2d inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送数据  <a href="classlibemb_1_1_i_o_device.html#a2d917acb7ad2f18e1fe8cecba124de2d">More...</a><br /></td></tr>
<tr class="separator:a2d917acb7ad2f18e1fe8cecba124de2d inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe8326c262b8eb210d41f8cd1f00102b inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#abe8326c262b8eb210d41f8cd1f00102b">setAttribute</a> (int attr, int value)</td></tr>
<tr class="memdesc:abe8326c262b8eb210d41f8cd1f00102b inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置属性  <a href="classlibemb_1_1_i_o_device.html#abe8326c262b8eb210d41f8cd1f00102b">More...</a><br /></td></tr>
<tr class="separator:abe8326c262b8eb210d41f8cd1f00102b inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e73b2bd9241b8958cc216157ed7bfef inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#a8e73b2bd9241b8958cc216157ed7bfef">getAttribute</a> (int attr)</td></tr>
<tr class="memdesc:a8e73b2bd9241b8958cc216157ed7bfef inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取属性值  <a href="classlibemb_1_1_i_o_device.html#a8e73b2bd9241b8958cc216157ed7bfef">More...</a><br /></td></tr>
<tr class="separator:a8e73b2bd9241b8958cc216157ed7bfef inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81457fca59662cf3844ee79dff9b825e inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#a81457fca59662cf3844ee79dff9b825e">fd</a> ()</td></tr>
<tr class="memdesc:a81457fca59662cf3844ee79dff9b825e inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取设备描述符  <a href="classlibemb_1_1_i_o_device.html#a81457fca59662cf3844ee79dff9b825e">More...</a><br /></td></tr>
<tr class="separator:a81457fca59662cf3844ee79dff9b825e inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa91aa91ca082dcd90b3c21b5fdcbe2c6 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_i_o_device.html#aa91aa91ca082dcd90b3c21b5fdcbe2c6">isOpen</a> ()</td></tr>
<tr class="memdesc:aa91aa91ca082dcd90b3c21b5fdcbe2c6 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断设备是否打开  <a href="classlibemb_1_1_i_o_device.html#aa91aa91ca082dcd90b3c21b5fdcbe2c6">More...</a><br /></td></tr>
<tr class="separator:aa91aa91ca082dcd90b3c21b5fdcbe2c6 inherit pub_methods_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_classlibemb_1_1_i_o_device"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classlibemb_1_1_i_o_device')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classlibemb_1_1_i_o_device.html">libemb::IODevice</a></td></tr>
<tr class="memitem:a7bca9ab1fd0062d471914cd1c36a774c inherit pro_attribs_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top"><a id="a7bca9ab1fd0062d471914cd1c36a774c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_fd</b> {-1}</td></tr>
<tr class="separator:a7bca9ab1fd0062d471914cd1c36a774c inherit pro_attribs_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adeadda7c8692c9fd171a66809fbcf4af inherit pro_attribs_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top"><a id="adeadda7c8692c9fd171a66809fbcf4af"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_openMode</b> {-1}</td></tr>
<tr class="separator:adeadda7c8692c9fd171a66809fbcf4af inherit pro_attribs_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5c6a7e2f7158141ef006a942ded96f3 inherit pro_attribs_classlibemb_1_1_i_o_device"><td class="memItemLeft" align="right" valign="top"><a id="aa5c6a7e2f7158141ef006a942ded96f3"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>m_devName</b> {&quot;&quot;}</td></tr>
<tr class="separator:aa5c6a7e2f7158141ef006a942ded96f3 inherit pro_attribs_classlibemb_1_1_i_o_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>进程间管道(有名管道) </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a58bad2cf8c3cabd1fd280ddc20b6979e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58bad2cf8c3cabd1fd280ddc20b6979e">&#9670;&nbsp;</a></span>open()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::ProcFifo::open </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>devName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ioMode</em> = <code>IO_MODE_RDWR_ONLY</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>打开有名管道 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devName</td><td>管道名称 </td></tr>
    <tr><td class="paramname">ioMode</td><td>设备模式(IO_MODE_E) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 打开成功 </dd>
<dd>
false 打开失败 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="_proc_util_8h_source.html">ProcUtil.h</a></li>
<li>src/ProcUtil.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
